package org.nf.api;

import org.nf.product.model.Product;
import org.nf.product.vo.ResultVO;
import org.nf.web.annotation.Model;
import org.nf.web.annotation.RequestMapping;
import org.nf.web.annotation.RequestParam;
import org.nf.web.servlet.View;
import org.nf.web.servlet.view.JsonView;

public class RequestController extends BaseController{
    /**
     * Get带参数请求测试
     * @return
     */
    @RequestMapping("/doParamsGetWorld")
    public View doParamsGetWorld(@RequestParam("name") String name) {

        ResultVO VO = new ResultVO();
        Product p = new Product();
        p.setProductId(1);
        p.setProductName("aaa");
        return new JsonView(p);

    }
}
